/* eslint-disable */
// @ts-ignore
import request from '@/utils/http';

import * as API from './types';

/** 处理报事 POST /record/userIssue/executeIssue */
export async function recordUserIssueExecuteIssueUsingPost({
  body,
  options,
}: {
  body: API.RecordUserIssueBoRecordUserIssueExecuteIssue;
  options?: { [key: string]: unknown };
}) {
  return request<API.RBoolean>('/record/userIssue/executeIssue', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 查看详情 POST /record/userIssue/getData */
export async function recordUserIssueGetDataUsingPost({
  body,
  options,
}: {
  body: API.RecordUserIssueBoRecordUserIssueGetData;
  options?: { [key: string]: unknown };
}) {
  return request<API.RRecordUserIssueVo>('/record/userIssue/getData', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 分页查询 POST /record/userIssue/pageData */
export async function recordUserIssuePageDataUsingPost({
  body,
  options,
}: {
  body: API.RecordUserIssueBoRecordUserIssuePageData;
  options?: { [key: string]: unknown };
}) {
  return request<API.RPageDataVoRecordUserIssueVo>(
    '/record/userIssue/pageData',
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json',
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** 报事记录统计 POST /record/userIssue/statisticsData */
export async function recordUserIssueStatisticsDataUsingPost({
  options,
}: {
  options?: { [key: string]: unknown };
}) {
  return request<API.RRecordUserIssueStatisticsVo>(
    '/record/userIssue/statisticsData',
    {
      method: 'POST',
      ...(options || {}),
    }
  );
}

/** 我要报事记录统计-小区-时间(天) POST /record/userIssue/statisticsToDayDate */
export async function recordUserIssueStatisticsToDayDateUsingPost({
  body,
  options,
}: {
  body: API.RecordUserIssueBoRecordUserIssueStatisticsToDayDate;
  options?: { [key: string]: unknown };
}) {
  return request<API.RListRecordUserIssueStatisticsAllVo>(
    '/record/userIssue/statisticsToDayDate',
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json',
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** 解决报事 POST /record/userIssue/successIssue */
export async function recordUserIssueSuccessIssueUsingPost({
  body,
  options,
}: {
  body: API.RecordUserIssueBoRecordUserIssueSuccessIssue;
  options?: { [key: string]: unknown };
}) {
  return request<API.RBoolean>('/record/userIssue/successIssue', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
